(function () {
    // 针对导入的模块做声明  key是路径的地址 value是返回一个函数
    var __webpack_modules__ = {
        "./src/js/format.js": function (module) {
            const dateFormate = date => {
                return "2021-12-12";
            };

            const priceFormate = price => {
                return "100.00";
            };
            module.exports = {
                dateFormate,
                priceFormate
            };
        },

        "./src/js/math.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
            "use strict";
            __webpack_require__.r(__webpack_exports__);
            __webpack_require__.d(__webpack_exports__, {
                mul: function () {
                    return mul;
                },
                sum: function () {
                    return sum;
                }
            });
            // ES6 的方式进行导出
            const sum = (num1, num2) => {
                return num1 + num2;
            };

            const mul = (num1, num2) => {
                return num1 * num2;
            };
        }
    };
    var __webpack_module_cache__ = {};
    // 定义一个esModule的引入函数
    function __webpack_require__(moduleId) {
        var cachedModule = __webpack_module_cache__[moduleId];
        if (cachedModule !== undefined) {
            return cachedModule.exports;
        }
        var module = (__webpack_module_cache__[moduleId] = {
            exports: {}
        });
        __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
        return module.exports;
    }
    !(function () {
        __webpack_require__.n = function (module) {
            console.log(module, "__webpack_require__.n");
            var getter =
                // 判断module是不是esModule
                module && module.__esModule
                    ? function () {
                          return module["default"];
                      }
                    : function () {
                          return module;
                      };
            __webpack_require__.d(getter, { a: getter });
            return getter;
        };
    })();
    !(function () {
        __webpack_require__.d = function (exports, definition) {
            for (var key in definition) {
                // 判断传入的definition中是否有这个值 并且exports中没有这个值
                if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
                    // 实现代理
                    Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
                }
            }
        };
    })();
    !(function () {
        // 判断某个属性是否有某个值
        __webpack_require__.o = function (obj, prop) {
            return Object.prototype.hasOwnProperty.call(obj, prop);
        };
    })();
    !(function () {
        // 给引入的esModule添加一个__esModule的值为true;
        __webpack_require__.r = function (exports) {
            if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
                Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
            }
            Object.defineProperty(exports, "__esModule", { value: true });
        };
    })();
    var __webpack_exports__ = {};
    !(function () {
        "use strict";
        __webpack_require__.r(__webpack_exports__);
        var _js_format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/js/format.js"); // commonJS
        var _js_format_js__WEBPACK_IMPORTED_MODULE_0___default = __webpack_require__.n(_js_format_js__WEBPACK_IMPORTED_MODULE_0__);

        const math = __webpack_require__("./src/js/math.js");
        console.log(math.sum(10, 30));
        console.log(math.mul(10, 30));

        console.log(_js_format_js__WEBPACK_IMPORTED_MODULE_0___default().dateFormate("aaaa"));
        console.log(_js_format_js__WEBPACK_IMPORTED_MODULE_0___default().priceFormate("bbbb"));
    })();
})();
